home *** CD-ROM | disk | FTP | other *** search
/ Halting the Hacker - A P…uide to Computer Security / Halting the Hacker - A Practical Guide to Computer Security.iso / rfc / rfc1532.txt < prev    next >
Text File  |  1997-04-01  |  52KB  |  1,235 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7. Network Working Group                                           W. Wimer
  8. Request for Comments: 1532                    Carnegie Mellon University
  9. Updates: 951                                                October 1993
  10. Category: Standards Track
  11.  
  12.  
  13.         Clarifications and Extensions for the Bootstrap Protocol
  14.  
  15. Status of this Memo
  16.  
  17.    This RFC specifies an Internet standards track protocol for the
  18.    Internet community, and requests discussion and suggestions for
  19.    improvements.  Please refer to the current edition of the "Internet
  20.    Official Protocol Standards" for the standardization state and status
  21.    of this protocol.  Distribution of this memo is unlimited.
  22.  
  23. Abstract
  24.  
  25.    Some aspects of the BOOTP protocol were rather loosely defined in its
  26.    original specification.  In particular, only a general description
  27.    was provided for the behavior of "BOOTP relay agents" (originally
  28.    called BOOTP forwarding agents").  The client behavior description
  29.    also suffered in certain ways.  This memo attempts to clarify and
  30.    strengthen the specification in these areas.
  31.  
  32.    In addition, new issues have arisen since the original specification
  33.    was written.  This memo also attempts to address some of these.
  34.  
  35. Table of Contents
  36.  
  37.    1. Introduction.................................................  2
  38.    1.1 Requirements................................................  2
  39.    1.2 Terminology.................................................  3
  40.    1.3 Data Transmission Order.....................................  4
  41.    2. General Issues...............................................  5
  42.    2.1 General BOOTP Processing....................................  5
  43.    2.2 Definition of the 'flags' Field.............................  5
  44.    2.3 Bit Ordering of Hardware Addresses..........................  7
  45.    2.4 BOOTP Over IEEE 802.5 Token Ring Networks...................  8
  46.    3. BOOTP Client Behavior........................................  9
  47.    3.1 Client use of the 'flags' field.............................  9
  48.    3.1.1 The BROADCAST flag........................................  9
  49.    3.1.2 The remainder of the 'flags' field........................  9
  50.    3.2 Definition of the 'secs' field..............................  9
  51.    3.3 Use of the 'ciaddr' and 'yiaddr' fields..................... 10
  52.    3.4 Interpretation of the 'giaddr' field........................ 11
  53.    3.5 Vendor information "magic cookie"........................... 12
  54.    4. BOOTP Relay Agents........................................... 13
  55.  
  56.  
  57.  
  58. Wimer                                                           [Page 1]
  59.  
  60. RFC 1532        Clarifications and Extensions for BOOTP     October 1993
  61.  
  62.  
  63.    4.1 General BOOTP Processing for Relay Agents................... 13
  64.    4.1.1 BOOTREQUEST Messages...................................... 14
  65.    4.1.2 BOOTREPLY Messages........................................ 16
  66.    5. BOOTP Server Behavior........................................ 18
  67.    5.1 Reception of BOOTREQUEST Messages........................... 18
  68.    5.2 Use of the 'secs' field..................................... 19
  69.    5.3 Use of the 'ciaddr' field................................... 19
  70.    5.4 Strategy for Delivery of BOOTREPLY Messages................. 19
  71.    Acknowledgements................................................ 21
  72.    References...................................................... 21
  73.    Security Considerations......................................... 22
  74.    Author's Address................................................ 22
  75.  
  76. 1. Introduction
  77.  
  78.    The Bootstrap Protocol (BOOTP) is a UDP/IP-based protocol which
  79.    allows a booting host to configure itself dynamically and without
  80.    user supervision.  BOOTP provides a means to notify a host of its
  81.    assigned IP address, the IP address of a boot server host, and the
  82.    name of a file to be loaded into memory and executed [1].  Other
  83.    configuration information such as the local subnet mask, the local
  84.    time offset, the addresses of default routers, and the addresses of
  85.    various Internet servers can also be communicated to a host using
  86.    BOOTP [2].
  87.  
  88.    Unfortunately, the original BOOTP specification [1] left some issues
  89.    of the protocol open to question.  The exact behavior of BOOTP relay
  90.    agents formerly called "BOOTP forwarding agents") was not clearly
  91.    specified.  Some parts of the overall protocol specification actually
  92.    conflict, while other parts have been subject to misinterpretation,
  93.    indicating that clarification is needed.  This memo addresses these
  94.    problems.
  95.  
  96.    Since the introduction of BOOTP, the IEEE 802.5 Token Ring Network
  97.    has been developed which presents a unique problem for BOOTP's
  98.    particular message-transfer paradigm.  This memo also suggests a
  99.    solution for this problem.
  100.  
  101.    NOTE: Unless otherwise specified in this document or a later
  102.    document, the information and requirements specified througout this
  103.    document also apply to extensions to BOOTP such as the Dynamic Host
  104.    Configuration Protocol (DHCP) [3].
  105.  
  106. 1.1 Requirements
  107.  
  108.    In this memo, the words that are used to define the significance of
  109.    particular requirements are capitalized.  These words are:
  110.  
  111.  
  112.  
  113.  
  114. Wimer                                                           [Page 2]
  115.  
  116. RFC 1532        Clarifications and Extensions for BOOTP     October 1993
  117.  
  118.  
  119.       o "MUST"
  120.  
  121.         This word or the adjective "REQUIRED" means that the item
  122.         is an absolute requirement of the specification.
  123.  
  124.       o "MUST NOT"
  125.  
  126.         This phrase means that the item is an absolute prohibition
  127.         of the specification.
  128.  
  129.       o "SHOULD"
  130.  
  131.         This word or the adjective "RECOMMENDED" means that there
  132.         may exist valid reasons in particular circumstances to
  133.         ignore this item, but the full implications should be
  134.         understood and the case carefully weighed before choosing a
  135.         different course.
  136.  
  137.       o "SHOULD NOT"
  138.  
  139.         This phrase means that there may exist valid reasons in
  140.         particular circumstances when the listed behavior is
  141.         acceptable or even useful, but the full implications should
  142.         be understood and the case carefully weighed before
  143.         implementing any behavior described with this label.
  144.  
  145.       o "MAY"
  146.  
  147.         This word or the adjective "OPTIONAL" means that this item
  148.         is truly optional.  One vendor may choose to include the
  149.         item because a particular marketplace requires it or
  150.         because it enhances the product, for example; another
  151.         vendor may omit the same item.
  152.  
  153. 1.2 Terminology
  154.  
  155.    This memo uses the following terms:
  156.  
  157.       BOOTREQUEST
  158.  
  159.          A BOOTREQUEST message is a BOOTP message sent from a BOOTP
  160.          client to a BOOTP server, requesting configuration information.
  161.  
  162.       BOOTREPLY
  163.  
  164.          A BOOTREPLY message is a BOOTP message sent from a BOOTP server
  165.          to a BOOTP client, providing configuration information.
  166.  
  167.  
  168.  
  169.  
  170. Wimer                                                           [Page 3]
  171.  
  172. RFC 1532        Clarifications and Extensions for BOOTP     October 1993
  173.  
  174.  
  175.       Silently discard
  176.  
  177.          This memo specifies several cases where a BOOTP entity is to
  178.          "silently discard" a received BOOTP message.  This means that
  179.          the entity is to discard the message without further
  180.          processing, and that the entity will not send any ICMP error
  181.          message as a result.  However, for diagnosis of problems, the
  182.          entity SHOULD provide the capability of logging the error,
  183.          including the contents of the silently-discarded message, and
  184.          SHOULD record the event in a statistics counter.
  185.  
  186. 1.3 Data Transmission Order
  187.  
  188.    The order of transmission of the header and data described in this
  189.    document is resolved to the octet level.  Whenever a diagram shows a
  190.    group of octets, the order of transmission of those octets is the
  191.    normal order in which they are read in English.  For example, in the
  192.    following diagram, the octets are transmitted in the order they are
  193.    numbered.
  194.  
  195.                      0                   1
  196.                      0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
  197.                      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  198.                      |       1       |       2       |
  199.                      +-------------------------------+
  200.                      |       3       |       4       |
  201.                      +-------------------------------+
  202.                      |       5       |       6       |
  203.                      +-------------------------------+
  204.  
  205.    Whenever an octet represents a numeric quantity, the leftmost bit in
  206.    the diagram is the high order or most significant bit.  That is, the
  207.    bit labeled 0 is the most significant bit.  For example, the
  208.    following diagram represents the value 170 (decimal).
  209.  
  210.                                0 1 2 3 4 5 6 7
  211.                               +-+-+-+-+-+-+-+-+
  212.                               |1 0 1 0 1 0 1 0|
  213.                               +---------------+
  214.  
  215.    Similarly, whenever a multi-octet field represents a numeric quantity
  216.    the leftmost bit of the whole field is the most significant bit.
  217.    When a multi-octet quantity is transmitted the most significant octet
  218.    is transmitted first.
  219.  
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226. Wimer                                                           [Page 4]
  227.  
  228. RFC 1532        Clarifications and Extensions for BOOTP     October 1993
  229.  
  230.  
  231. 2. General Issues
  232.  
  233.    This section covers issues of general relevance to all BOOTP entities
  234.    (clients, servers, and relay agents).
  235.  
  236. 2.1 General BOOTP Processing
  237.  
  238.    The following consistency checks SHOULD be performed on BOOTP
  239.    messages:
  240.  
  241.       o The IP Total Length and UDP Length must be large enough to
  242.         contain the minimal BOOTP header of 300 octets (in the UDP
  243.         data field) specified in [1].
  244.  
  245.    NOTE: Future extensions to the BOOTP protocol may increase the size
  246.    of BOOTP messages.  Therefore, BOOTP messages which, according to the
  247.    IP Total Length and UDP Length fields, are larger than the minimum
  248.    size specified by [1] MUST also be accepted.
  249.  
  250.       o The 'op' (opcode) field of the message must contain either the
  251.         code for a BOOTREQUEST (1) or the code for a BOOTREPLY (2).
  252.  
  253.    BOOTP messages not meeting these consistency checks MUST be silently
  254.    discarded.
  255.  
  256. 2.2 Definition of the 'flags' Field
  257.  
  258.    The standard BOOTP message format defined in [1] includes a two-octet
  259.    field located between the 'secs' field and the 'ciaddr' field.  This
  260.    field is merely designated as "unused" and its contents left
  261.    unspecified, although Section 7.1 of [1] does offer the following
  262.    suggestion:
  263.  
  264.       "Before setting up the packet for the first time, it is a good
  265.       idea to clear the entire packet buffer to all zeros; this will
  266.       place all fields in their default state."
  267.  
  268.       This memo hereby designates this two-octet field as the 'flags'
  269.       field.
  270.  
  271.       This memo hereby defines the most significant bit of the 'flags'
  272.       field as the BROADCAST (B) flag.  The semantics of this flag are
  273.       discussed in Sections 3.1.1 and 4.1.2 of this memo.
  274.  
  275.       The remaining bits of the 'flags' field are reserved for future
  276.       use.  They MUST be set to zero by clients and ignored by servers
  277.       and relay agents.
  278.  
  279.  
  280.  
  281.  
  282. Wimer                                                           [Page 5]
  283.  
  284. RFC 1532        Clarifications and Extensions for BOOTP     October 1993
  285.  
  286.  
  287.       The 'flags' field, then, appears as follows:
  288.  
  289.                      0                   1
  290.                      0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
  291.                      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  292.                      |B|             MBZ             |
  293.                      +-+-----------------------------+
  294.  
  295.    where:
  296.  
  297.       B    BROADCAST flag (discussed in Sections 3.1.1 and 4.1.2)
  298.  
  299.       MBZ  MUST BE ZERO (reserved for future use)
  300.  
  301.    The format of a BOOTP message is shown below.  The numbers in
  302.    parentheses indicate the size of each field in octets.
  303.  
  304.  
  305.  
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335.  
  336.  
  337.  
  338. Wimer                                                           [Page 6]
  339.  
  340. RFC 1532        Clarifications and Extensions for BOOTP     October 1993
  341.  
  342.  
  343.    0                   1                   2                   3
  344.    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  345.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  346.    |     op (1)    |   htype (1)   |   hlen (1)    |   hops (1)    |
  347.    +---------------+---------------+---------------+---------------+
  348.    |                            xid (4)                            |
  349.    +-------------------------------+-------------------------------+
  350.    |           secs (2)            |           flags (2)           |
  351.    +-------------------------------+-------------------------------+
  352.    |                           ciaddr (4)                          |
  353.    +---------------------------------------------------------------+
  354.    |                           yiaddr (4)                          |
  355.    +---------------------------------------------------------------+
  356.    |                           siaddr (4)                          |
  357.    +---------------------------------------------------------------+
  358.    |                           giaddr (4)                          |
  359.    +---------------------------------------------------------------+
  360.    |                                                               |
  361.    |                           chaddr (16)                         |
  362.    |                                                               |
  363.    |                                                               |
  364.    +---------------------------------------------------------------+
  365.    |                                                               |
  366.    |                           sname  (64)                         |
  367.    +---------------------------------------------------------------+
  368.    |                                                               |
  369.    |                           file   (128)                        |
  370.    +---------------------------------------------------------------+
  371.    |                                                               |
  372.    |                           vend   (64)                         |
  373.    +---------------------------------------------------------------+
  374.  
  375. 2.3 Bit Ordering of Hardware Addresses
  376.  
  377.    The bit ordering used for link-level hardware addresses in the
  378.    protocol [4] on the client's link-level network (assuming ARP is
  379.    defined for that network).
  380.  
  381.    The 'chaddr' field MUST be preserved as it was specified by the BOOTP
  382.    client.  A relay agent MUST NOT reverse the bit ordering of the two
  383.    networks which use different bit orderings.
  384.  
  385.       DISCUSSION:
  386.  
  387.          One of the primary reasons the 'chaddr' field exists is to
  388.          enable BOOTP servers and relay agents to communicate directly
  389.          with clients without the use of broadcasts.  In practice, the
  390.          contents of the the same way the normal ARP protocol would
  391.  
  392.  
  393.  
  394. Wimer                                                           [Page 7]
  395.  
  396. RFC 1532        Clarifications and Extensions for BOOTP     October 1993
  397.  
  398.  
  399.          have.  Clearly, interoperability can only be achieved if a
  400.          consistent interpretation of the 'chaddr' field is used.
  401.  
  402.          As a practical example, this means that the bit ordering used
  403.          for the is the opposite of the bit ordering used by a BOOTP
  404.          client on a DIX ethernet network.
  405.  
  406. 2.4 BOOTP Over IEEE 802.5 Token Ring Networks
  407.  
  408.    Special consideration of the client/server and client/relay agent
  409.    interactions must be given to IEEE 802.5 networks because of non-
  410.    transparent bridging.
  411.  
  412.    The client SHOULD send its broadcast BOOTREQUEST with an All Routes
  413.    Explorer RIF.  This will enable servers/relay agents to cache the
  414.    return route if they choose to do so.  For those server/relay agents
  415.    which cannot cache the return route (because they are stateless, for
  416.    example), the BOOTREPLY message SHOULD be sent to the client's
  417.    hardware address, as taken from the BOOTP message, with a Spanning
  418.    Tree Rooted RIF.  The actual bridge route will be recorded by the
  419.    client and server/relay agent by normal ARP processing code.
  420.  
  421.       DISCUSSION:
  422.  
  423.          In the simplest case, an unbridged, single ring network, the
  424.          broadcast behavior of the BOOTP protocol is identical to that
  425.          of Ethernet networks.  However, a BOOTP client cannot know, a
  426.          priori, that an 802.5 network is not bridged.  In fact, the
  427.          likelihood is that the server, or relay agent, will not know
  428.          either.
  429.  
  430.          Of the four possible scenerios, only two are interesting: where
  431.          the assumption is that the 802.5 network is not bridged and it
  432.          is, and the assumption that the network is bridged and it is
  433.          not.  In the former case, the Routing Information Field (RIF)
  434.          will not be used; therefore, if the server/relay agent are on
  435.          another segment of the ring, the client cannot reach it.  In
  436.          the latter case, the RIF field will be used, resulting in a few
  437.          extraneous bytes on the ring.  It is obvious that an almost
  438.          immeasurable inefficiency is to be preferred over a complete
  439.          failure to communicate.
  440.  
  441.          Given that the assumption is that RIF fields will be needed, it
  442.          is necesary to determine the optimum method for the client to
  443.          reach the server/relay agent, and the optimum method for the
  444.          response to be returned.
  445.  
  446.  
  447.  
  448.  
  449.  
  450. Wimer                                                           [Page 8]
  451.  
  452. RFC 1532        Clarifications and Extensions for BOOTP     October 1993
  453.  
  454.  
  455. 3. BOOTP Client Behavior
  456.  
  457.    This section clarifies various issues regarding BOOTP client
  458.    behavior.
  459.  
  460. 3.1 Client use of the 'flags' field
  461.  
  462. 3.1.1 The BROADCAST flag
  463.  
  464.    Normally, BOOTP servers and relay agents attempt to deliver BOOTREPLY
  465.    messages directly to a client using unicast delivery.  The IP
  466.    destination address (in the IP header) is set to the BOOTP 'yiaddr'
  467.    address and the link-layer destination address is set to the BOOTP
  468.    unable to receive such unicast IP datagrams until they know their own
  469.    IP address (thus we have a "chicken and egg" issue).  Often, however,
  470.    they can receive broadcast IP datagrams (those with a valid IP
  471.    broadcast address as the IP destination and the link-layer broadcast
  472.    address as the link-layer destination).
  473.  
  474.    If a client falls into this category, it SHOULD set (to 1) the
  475.    newly-defined BROADCAST flag in the 'flags' field of BOOTREPLY
  476.    messages it generates.  This will provide a hint to BOOTP servers and
  477.    relay agents that they should attempt to broadcast their BOOTREPLY
  478.    messages to the client.
  479.  
  480.    If a client does not have this limitation (i.e., it is perfectly able
  481.    to receive unicast BOOTREPLY messages), it SHOULD NOT set the
  482.    BROADCAST flag (i.e., it SHOULD clear the BROADCAST flag to 0).
  483.  
  484.       DISCUSSION:
  485.  
  486.          This addition to the protocol is a workaround for old host
  487.          implementations.  Such implementations SHOULD be modified so
  488.          that they may receive unicast BOOTREPLY messages, thus making
  489.          use of this workaround unnecessary.  In general, the use of
  490.          this mechanism is discouraged.
  491.  
  492. 3.1.2 The remainder of the 'flags' field
  493.  
  494.    The remaining bits of the 'flags' field are reserved for future use.
  495.    A client MUST set these bits to zero in all BOOTREQUEST messages it
  496.    generates.  A client MUST ignore these bits in all BOOTREPLY messages
  497.    it receives.
  498.  
  499. 3.2 Definition of the 'secs' field
  500.  
  501.    The 'secs' field of a BOOTREQUEST message SHOULD represent the
  502.    elapsed time, in seconds, since the client sent its first BOOTREQUEST
  503.  
  504.  
  505.  
  506. Wimer                                                           [Page 9]
  507.  
  508. RFC 1532        Clarifications and Extensions for BOOTP     October 1993
  509.  
  510.  
  511.    message.  Note that this implies that the 'secs' field of the first
  512.    BOOTREQUEST message SHOULD be set to zero.
  513.  
  514.    Clients SHOULD NOT set the 'secs' field to a value which is constant
  515.    for all BOOTREQUEST messages.
  516.  
  517.       DISCUSSION:
  518.  
  519.          The original definition of the 'secs' field was vague.  It was
  520.          not clear whether it represented the time since the first
  521.          BOOTREQUEST message was sent or some other time period such as
  522.          the time since the client machine was powered-up.  This has
  523.          limited its usefulness as a policy control mechanism for BOOTP
  524.          servers and relay agents.  Furthermore, certain client
  525.          implementations have been known to simply set this field to a
  526.          constant value or use incorrect byte-ordering.  Incorrect
  527.          byte-ordering usually makes it appear as if a client has been
  528.          waiting much longer than it really has, so a relay agent will
  529.          relay the BOOTREQUEST sooner than desired (usually
  530.          immediately).  These implementation errors have further
  531.          undermined the usefulness of the 'secs' field.  These incorrect
  532.          implementations SHOULD be corrected.
  533.  
  534. 3.3 Use of the 'ciaddr' and 'yiaddr' fields
  535.  
  536.    If a BOOTP client does not know what IP address it should be using,
  537.    the client SHOULD set the 'ciaddr' field to 0.0.0.0.  If the client
  538.    has the ability to remember the last IP address it was assigned, or
  539.    it has been preconfigured with an IP address via some alternate
  540.    mechanism, the client MAY fill the 'ciaddr' field with that IP
  541.    address.  If the client does place a non-zero IP address in the
  542.    datagrams addressed to that IP address and also answer ARP requests
  543.    for that IP address (if ARP is used on that network).
  544.  
  545.    The BOOTP server is free to assign a different IP address (in the
  546.    SHOULD adopt the IP address specified in 'yiaddr' and begin using it
  547.    as soon as possible.
  548.  
  549.       DISCUSSION:
  550.  
  551.          There are various interpretations about the purpose of the
  552.          'ciaddr' field and, unfortunately, no agreement on a single
  553.          correct interpretation.  One interpretation is that if a client
  554.          is willing to accept whatever IP address the BOOTP server
  555.          assigns to it, the client should always place 0.0.0.0 in the
  556.          'ciaddr' field, regardless of whether it knows its previously-
  557.          assigned address.  Conversely, if the client wishes to assert
  558.          that it must have a particular IP address (e.g., the IP address
  559.  
  560.  
  561.  
  562. Wimer                                                          [Page 10]
  563.  
  564. RFC 1532        Clarifications and Extensions for BOOTP     October 1993
  565.  
  566.  
  567.          was hand-configured by the host administrator and BOOTP is only
  568.          being used to obtain a boot file and/or information from the
  569.          'vend' field), the client will then fill the 'ciaddr' field
  570.          with the desired IP address and ignore the IP address assigned
  571.          by the BOOTP server as indicated in the 'yiaddr' field.  An
  572.          alternate interpretation holds that the client always fills the
  573.          'ciaddr' field with its most recently-assigned IP address (if
  574.          known) even if that address may be incorrect.  Such a client
  575.          will still accept and use the address assigned by the BOOTP
  576.          server as indicated in the 'yiaddr' field.  The motivation for
  577.          this interpretation is to aid the server in identifying the
  578.          client and/or in delivering the BOOTREPLY to the client.  Yet a
  579.          third (mis)interpretation allows the client to use client has
  580.          never used that address before or is not currently using that
  581.          address.
  582.  
  583.          The last interpretation is incorrect as it may prevent the
  584.          BOOTREPLY from reaching the client.  The server will usually
  585.          unicast the reply to the address given in 'ciaddr' but the
  586.          client may not be listening on that address yet, or the client
  587.          may be connected to an incorrect subnet such that normal IP
  588.          routing (correctly) routes the reply to a different subnet.
  589.  
  590.          The second interpretation also suffers from the "incorrect
  591.          subnet" problem.
  592.  
  593.          The first interpretation seems to be the safest and most likely
  594.          to promote interoperability.
  595.  
  596. 3.4 Interpretation of the 'giaddr' field
  597.  
  598.    The 'giaddr' field is rather poorly named.  It exists to facilitate
  599.    the transfer of BOOTREQUEST messages from a client, through BOOTP
  600.    relay agents, to servers on different networks than the client.
  601.    Similarly, it facilitates the delivery of BOOTREPLY messages from the
  602.    servers, through BOOTP relay agents, back to the client.  In no case
  603.    does it represent a general IP router to be used by the client.  A
  604.    BOOTP client MUST set the 'giaddr' field to zero (0.0.0.0) in all
  605.    BOOTREQUEST messages it generates.
  606.  
  607.    A BOOTP client MUST NOT interpret the 'giaddr' field of a BOOTREPLY
  608.    message to be the IP address of an IP router.  A BOOTP client SHOULD
  609.    completely ignore the contents of the 'giaddr' field in BOOTREPLY
  610.    messages.
  611.  
  612.  
  613.  
  614.  
  615.  
  616.  
  617.  
  618. Wimer                                                          [Page 11]
  619.  
  620. RFC 1532        Clarifications and Extensions for BOOTP     October 1993
  621.  
  622.  
  623.       DISCUSSION:
  624.  
  625.          The semantics of the 'giaddr' field were poorly defined.
  626.          Section 7.5 of [1] states:
  627.  
  628.            "If 'giaddr' (gateway address) is nonzero, then the packets
  629.            should be forwarded there first, in order to get to the
  630.            server."
  631.  
  632.    In that sentence, "get to" refers to communication from the client to
  633.    the server subsequent to the BOOTP exchange, such as a TFTP session.
  634.    Unfortunately, the 'giaddr' field may contain the address of a BOOTP
  635.    relay agent that is not itself an IP router (according to [1],
  636.    Section 8, fifth paragraph), in which case, it will be useless as a
  637.    first-hop for TFTP packets sent to the server (since, by definition,
  638.    non-routers don't forward datagrams at the IP layer).
  639.  
  640.    Although now prohibited by Section 4.1.1 of this memo, the 'giaddr'
  641.    field might contain a broadcast address according to Section 8, sixth
  642.    paragraph of [1].  Not only would such an address be useless as a
  643.    router address, it might also cause the client to ARP for the
  644.    broadcast address (since, if the client didn't receive a subnet mask
  645.    in the BOOTREPLY message, it would be unable to recognize a subnet
  646.    broadcast address).  This is clearly undesirable.
  647.  
  648.    To reach a non-local server, clients can obtain a first-hop router
  649.    address from the "Gateway" subfield of the "Vendor Information
  650.    Extensions" [2] (if present), or via the ICMP router discovery
  651.    protocol [5] or other similar mechanism.
  652.  
  653. 3.5 Vendor information "magic cookie"
  654.  
  655.    It is RECOMMENDED that a BOOTP client always fill the first four
  656.    octets of the 'vend' (vendor information) field of a BOOTREQUEST with
  657.    a four-octet identifier called a "magic cookie."  A BOOTP client
  658.    SHOULD do this even if it has no special information to communicate
  659.    to the BOOTP server using the 'vend' field.  This aids the BOOTP
  660.    server in determining what vendor information format it should use in
  661.    its BOOTREPLY messages.
  662.  
  663.    If a special vendor-specific magic cookie is not being used, a BOOTP
  664.    client SHOULD use the dotted decimal value 99.130.83.99 as specified
  665.    in [2].  In this case, if the client has no information to
  666.    communicate to the server, the octet immediately following the magic
  667.    cookie SHOULD be set to the "End" tag (255) and the remaining octets
  668.    of the 'vend' field SHOULD be set to zero.
  669.  
  670.  
  671.  
  672.  
  673.  
  674. Wimer                                                          [Page 12]
  675.  
  676. RFC 1532        Clarifications and Extensions for BOOTP     October 1993
  677.  
  678.  
  679.       DISCUSSION:
  680.  
  681.          Sometimes different operating systems or networking packages
  682.          are run on the same machine at different times (or even at the
  683.          same time!).  Since the hardware address placed in the 'chaddr'
  684.          field will likely be the same, BOOTREQUESTs from completely
  685.          different BOOTP clients on the same machine will likely be
  686.          difficult for a BOOTP server to differentiate.  If the client
  687.          includes a magic cookie in its BOOTREQUESTs, the server will at
  688.          least know what format the client expects and can understand in
  689.          corresponding BOOTREPLY messages.
  690.  
  691. 4. BOOTP Relay Agents
  692.  
  693.          In many cases, BOOTP clients and their associated BOOTP
  694.          server(s) do not reside on the same IP network or subnet.  In
  695.          such cases, some kind of third-party agent is required to
  696.          transfer BOOTP messages between clients and servers.  Such an
  697.          agent was originally referred to as a "BOOTP forwarding agent."
  698.          However, in order to avoid confusion with the IP forwarding
  699.          function of an IP router, the name "BOOTP relay agent" is
  700.          hereby adopted instead.
  701.  
  702.       DISCUSSION:
  703.  
  704.          A BOOTP relay agent performs a task which is distinct from an
  705.          IP router's normal IP forwarding function.  While a router
  706.          normally switches IP datagrams between networks more-or-less
  707.          transparently, a BOOTP relay agent may more properly be thought
  708.          to receive BOOTP messages as a final destination and then
  709.          generate new BOOTP messages as a result.  It is incorrect for a
  710.          relay agent implementation to simply forward a BOOTP message
  711.          "straight through like a regular packet."
  712.  
  713.          This relay-agent functionality is most conveniently located in
  714.          the routers which interconnect the clients and servers, but may
  715.          alternatively be located in a host which is directly connected
  716.          to the client subnet.
  717.  
  718.          Any Internet host or router which provides BOOTP relay-agent
  719.          capability MUST conform to the specifications in this memo.
  720.  
  721. 4.1 General BOOTP Processing for Relay Agents
  722.  
  723.    All locally delivered UDP messages whose UDP destination port number
  724.    is BOOTPS (67) are considered for special processing by the host or
  725.    router's logical BOOTP relay agent.
  726.  
  727.  
  728.  
  729.  
  730. Wimer                                                          [Page 13]
  731.  
  732. RFC 1532        Clarifications and Extensions for BOOTP     October 1993
  733.  
  734.  
  735.    In the case of a host, locally delivered datagrams are simply all
  736.    datagrams normally received by that host, i.e., broadcast and
  737.    multicast datagrams as well as unicast datagrams addressed to IP
  738.    addresses of that host.
  739.  
  740.    In the case of a router, locally delivered datagrams are broadcast
  741.    and multicast datagrams as well as unicast datagrams addressed to IP
  742.    addresses of that router.  These are datagrams for which the router
  743.    should be considered an end destination as opposed to an intermediate
  744.    switching node.  Thus a unicast datagram with an IP destination not
  745.    matching any of the router's IP addresses is not considered for
  746.    processing by the router's logical BOOTP relay agent.
  747.  
  748.    Hosts and routers are usually required to silently discard incoming
  749.    datagrams containing illegal IP source addresses.  This is generally
  750.    known as "Martian address filtering."  One of these illegal addresses
  751.    is 0.0.0.0 (or actually anything on network 0).  However, hosts or
  752.    routers which support a BOOTP relay agent MUST accept for local
  753.    delivery to the relay agent BOOTREQUEST messages whose IP source
  754.    address is 0.0.0.0.  BOOTREQUEST messages from legal IP source
  755.    addresses MUST also be accepted.
  756.  
  757.    A relay agent MUST silently discard any received UDP messages whose
  758.    UDP destination port number is BOOTPC (68).
  759.  
  760.       DISCUSSION:
  761.  
  762.          There should be no need for a relay agent to process messages
  763.          addressed to the BOOTPC port.  Careful reading of the original
  764.          BOOTP specification [1] will show this.  Nevertheless, some
  765.          relay agent implementations incorrectly relay such messages.
  766.  
  767.    The consistency checks specified in Section 2.1 SHOULD be performed
  768.    by the relay agent.  BOOTP messages not meeting these consistency
  769.    checks MUST be silently discarded.
  770.  
  771. 4.1.1 BOOTREQUEST Messages
  772.  
  773.    Some configuration mechanism MUST exist to enable or disable the
  774.    relaying of BOOTREQUEST messages.  Relaying MUST be disabled by
  775.    default.
  776.  
  777.    When the BOOTP relay agent receives a BOOTREQUEST message, it MAY use
  778.    the value of the 'secs' (seconds since client began booting) field of
  779.    the request as a factor in deciding whether to relay the request.  If
  780.    such a policy mechanism is implemented, its threshold SHOULD be
  781.    configurable.
  782.  
  783.  
  784.  
  785.  
  786. Wimer                                                          [Page 14]
  787.  
  788. RFC 1532        Clarifications and Extensions for BOOTP     October 1993
  789.  
  790.  
  791.       DISCUSSION:
  792.  
  793.          To date, this feature of the BOOTP protocol has not necessarily
  794.          been shown to be useful.  See Section 3.2 for a discussion.
  795.  
  796.    The relay agent MUST silently discard BOOTREQUEST messages whose
  797.    provided to set this threshold to a smaller value if desired by the
  798.    network manager.  The default setting for a configurable threshold
  799.    SHOULD be 4.
  800.  
  801.    If the relay agent does decide to relay the request, it MUST examine
  802.    the 'giaddr' ("gateway" IP address) field.  If this field is zero,
  803.    the relay agent MUST fill this field with the IP address of the
  804.    interface on which the request was received.  If the interface has
  805.    more than one IP address logically associated with it, the relay
  806.    agent SHOULD choose one IP address associated with that interface and
  807.    use it consistently for all BOOTP messages it relays.  If the
  808.    'giaddr' field contains some non-zero value, the 'giaddr' field MUST
  809.    NOT be modified.  The relay agent MUST NOT, under any circumstances,
  810.    fill the 'giaddr' field with a broadcast address as is suggested in
  811.    [1] (Section 8, sixth paragraph).
  812.  
  813.    The value of the 'hops' field MUST be incremented.
  814.  
  815.    All other BOOTP fields MUST be preserved intact.
  816.  
  817.    At this point, the request is relayed to its new destination (or
  818.    destinations).  This destination MUST be configurable.  Further, this
  819.    destination configuration SHOULD be independent of the destination
  820.    configuration for any other so-called "broadcast forwarders" (e.g.,
  821.    for the UDP-based TFTP, DNS, Time, etc.  protocols).
  822.  
  823.       DISCUSSION:
  824.  
  825.          The network manager may wish the relaying destination to be an
  826.          IP unicast, multicast, broadcast, or some combination.  A
  827.          configurable list of destination IP addresses provides good
  828.          flexibility.  More flexible configuration schemes are
  829.          encouraged.  For example, it may be desirable to send to the
  830.          limited broadcast address (255.255.255.255) on specific
  831.          physical interfaces.  However, if the BOOTREQUEST message was
  832.          received as a broadcast, the relay agent MUST NOT rebroadcast
  833.          the BOOTREQUEST on the physical interface from whence it came.
  834.  
  835.          A relay agent MUST use the same destination (or set of
  836.          destinations) for all BOOTREQUEST messages it relays from a
  837.          given client.
  838.  
  839.  
  840.  
  841.  
  842. Wimer                                                          [Page 15]
  843.  
  844. RFC 1532        Clarifications and Extensions for BOOTP     October 1993
  845.  
  846.  
  847.       DISCUSSION:
  848.  
  849.          At least one known relay agent implementation uses a round-
  850.          robin scheme to provide load balancing across multiple BOOTP
  851.          servers.  Each time it receives a new BOOTREQUEST message, it
  852.          relays the message to the next BOOTP server in a list of
  853.          servers.  Thus, with this relay agent, multiple consecutive
  854.          BOOTREQUEST messages from a given client will be delivered to
  855.          different servers.
  856.  
  857.          Unfortunately, this well-intentioned scheme reacts badly with
  858.          DHCP [3] and perhaps other variations of the BOOTP protocol
  859.          which depend on multiple exchanges of BOOTREQUEST and BOOTREPLY
  860.          messages between clients and servers.  Therefore, all
  861.          BOOTREQUEST messages from a given client MUST be relayed to the
  862.          same destination (or set of destinations).
  863.  
  864.          One way to meet this requirement while providing some load-
  865.          balancing benefit is to hash the client's link-layer address
  866.          (or some other reliable client-identifying information) and use
  867.          the resulting hash value to select the appropriate relay
  868.          destination (or set of destinations).  The simplest solution,
  869.          of course, is to not use a load-balancing scheme and just relay
  870.          ALL received BOOTREQUEST messages to the same destination (or
  871.          set of destinations).
  872.  
  873.          When transmitting the request to its next destination, the
  874.          relay agent may set the IP Time-To-Live field to either the
  875.          default value for new datagrams originated by the relay agent,
  876.          or to the TTL of the original BOOTREQUEST decremented by (at
  877.          least) one.
  878.  
  879.       DISCUSSION:
  880.  
  881.          As an extra precaution against BOOTREQUEST loops, it is
  882.          preferable to use the decremented TTL from the original
  883.          BOOTREQUEST.  Unfortunately, this may be difficult to do in
  884.          some implementations.
  885.  
  886.          If the BOOTREQUEST has a UDP checksum (i.e., the UDP checksum
  887.          is non-zero), the checksum must be recalculated before
  888.          transmitting the request.
  889.  
  890. 4.1.2 BOOTREPLY Messages
  891.  
  892.    BOOTP relay agents relay BOOTREPLY messages only to BOOTP clients.
  893.    It is the responsibility of BOOTP servers to send BOOTREPLY messages
  894.    directly to the relay agent identified in the BOOTREPLY messages it
  895.  
  896.  
  897.  
  898. Wimer                                                          [Page 16]
  899.  
  900. RFC 1532        Clarifications and Extensions for BOOTP     October 1993
  901.  
  902.  
  903.    receives are intended for BOOTP clients on its directly-connected
  904.    networks.
  905.  
  906.    When a relay agent receives a BOOTREPLY message, it should examine
  907.    the BOOTP 'giaddr', 'yiaddr', 'chaddr', 'htype', and for the relay
  908.    agent to deliver the BOOTREPLY message to the client.
  909.  
  910.    The 'giaddr' field can be used to identify the logical interface from
  911.    which the reply must be sent (i.e., the host or router interface
  912.    connected to the same network as the BOOTP client).  If the content
  913.    of the 'giaddr' field does not match one of the relay agent's
  914.    directly-connected logical interfaces, the BOOTREPLY messsage MUST be
  915.    silently discarded.
  916.  
  917.    The 'htype', 'hlen', and 'chaddr' fields supply the link-layer
  918.    hardware type, hardware address length, and hardware address of the
  919.    client as defined in the ARP protocol [4] and the Assigned Numbers
  920.    document [6].  The 'yiaddr' field is the IP address of the client, as
  921.    assigned by the BOOTP server.
  922.  
  923.    The relay agent SHOULD examine the newly-defined BROADCAST flag (see
  924.    Sections 2.2 and 3.1.1 for more information).  If this flag is set to
  925.    1, the reply SHOULD be sent as an IP broadcast using the IP limited
  926.    broadcast address 255.255.255.255 as the IP destination address and
  927.    the link-layer broadcast address as the link-layer destination
  928.    address.  If the BROADCAST flag is cleared (0), the reply SHOULD be
  929.    sent as an IP unicast to the IP address specified by the 'yiaddr'
  930.    field and the link-layer address specified in the 'chaddr' field.  If
  931.    unicasting is not possible, the reply MAY be sent as a broadcast, in
  932.    which case it SHOULD be sent to the link-layer broadcast address
  933.    using the IP limited broadcast address 255.255.255.255 as the IP
  934.    destination address.
  935.  
  936.       DISCUSSION:
  937.  
  938.          The addition of the BROADCAST flag to the protocol is a
  939.          workaround to help promote interoperability with certain client
  940.          implementations.
  941.  
  942.          Note that since the 'flags' field was previously defined in [1]
  943.          simply as an "unused" field, it is possible that old client or
  944.          server implementations may accidentally and unknowingly set the
  945.          new BROADCAST flag.  It is actually expected that such
  946.          implementations will be rare (most implementations seem to
  947.          zero-out this field), but interactions with such
  948.          implementations must nevertheless be considered.  If an old
  949.          client or server does set the BROADCAST flag to 1 incorrectly,
  950.          conforming relay agents will generate broadcast BOOTREPLY
  951.  
  952.  
  953.  
  954. Wimer                                                          [Page 17]
  955.  
  956. RFC 1532        Clarifications and Extensions for BOOTP     October 1993
  957.  
  958.  
  959.          messages to the corresponding client.  The BOOTREPLY messages
  960.          should still properly reach the client, at the cost of one
  961.          (otherwise unnecessary) additional broadcast.  This, however,
  962.          is no worse than a server or relay agent which always
  963.          broadcasts its BOOTREPLY messages.
  964.  
  965.          Older client or server implementations which accidentally set
  966.          the BROADCAST flag SHOULD be corrected to properly comply with
  967.          this newer specification.
  968.  
  969.          All BOOTP fields MUST be preserved intact.  The relay agent
  970.          MUST NOT modify any BOOTP field of the BOOTREPLY message when
  971.          relaying it to the client.
  972.  
  973.          The reply MUST have its UDP destination port set to BOOTPC
  974.          (68).
  975.  
  976.          If the BOOTREPLY has a UDP checksum (i.e., the UDP checksum is
  977.          non-zero), the checksum must be recalculated before
  978.          transmitting the reply.
  979.  
  980. 5. BOOTP Server Behavior
  981.  
  982.    This section provides clarifications on the behavior of BOOTP
  983.    servers.
  984.  
  985. 5.1 Reception of BOOTREQUEST Messages
  986.  
  987.    All received UDP messages whose UDP destination port number is BOOTPS
  988.    (67) are considered for processing by the BOOTP server.
  989.  
  990.    Hosts and routers are usually required to silently discard incoming
  991.    datagrams containing illegal IP source addresses.  This is generally
  992.    known as "Martian address filtering."  One of these illegal addresses
  993.    is 0.0.0.0 (or actually anything on network 0).  However, hosts or
  994.    routers which support a BOOTP server MUST accept for local delivery
  995.    to the server BOOTREQUEST messages whose IP source address is
  996.    0.0.0.0.  BOOTREQUEST messages from legal IP source addresses MUST
  997.    also be accepted.
  998.  
  999.    A BOOTP server MUST silently discard any received UDP messages whose
  1000.    UDP destination port number is BOOTPC (68).
  1001.  
  1002.       DISCUSSION:
  1003.  
  1004.          There should be no need for a BOOTP server to process messages
  1005.          addressed to the BOOTPC port.  Careful reading of the original
  1006.          BOOTP specification [1] will show this.
  1007.  
  1008.  
  1009.  
  1010. Wimer                                                          [Page 18]
  1011.  
  1012. RFC 1532        Clarifications and Extensions for BOOTP     October 1993
  1013.  
  1014.  
  1015.          The consistency checks specified in Section 2.1 SHOULD be
  1016.          performed by the BOOTP server.  BOOTP messages not meeting
  1017.          these consistency checks MUST be silently discarded.
  1018.  
  1019. 5.2 Use of the 'secs' field
  1020.  
  1021.    When the BOOTP server receives a BOOTREQUEST message, it MAY use the
  1022.    value of the 'secs' (seconds since client began booting) field of the
  1023.    request as a factor in deciding whether and/or how to reply to the
  1024.    request.
  1025.  
  1026.       DISCUSSION:
  1027.  
  1028.          To date, this feature of the BOOTP protocol has not necessarily
  1029.          been shown to be useful.  See Section 3.2 for a discussion.
  1030.  
  1031. 5.3 Use of the 'ciaddr' field
  1032.  
  1033.    There have been various client interpretations of the 'ciaddr' field
  1034.    for which Section 3.3 should be consulted.  A BOOTP server SHOULD be
  1035.    prepared to deal with these varying interpretations.  In general, the
  1036.    client; the contents of the 'ciaddr', 'chaddr', 'htype', and 'hlen'
  1037.    fields, and probably other information (perhaps in the 'file' and
  1038.    respond to a given client.
  1039.  
  1040.    BOOTP servers SHOULD preserve the contents of the 'ciaddr' field in
  1041.    BOOTREPLY messages; the contents of 'ciaddr' in a BOOTREPLY message
  1042.    SHOULD exactly match the contents of 'ciaddr' in the corresponding
  1043.    BOOTREQUEST message.
  1044.  
  1045.       DISCUSSION:
  1046.  
  1047.    It has been suggested that a client may wish to use the contents of
  1048.    indeed intended for it.
  1049.  
  1050. 5.4 Strategy for Delivery of BOOTREPLY Messages
  1051.  
  1052.    Once the BOOTP server has created an appropriate BOOTREPLY message,
  1053.    that BOOTREPLY message must be properly delivered to the client.
  1054.  
  1055.    The server SHOULD first check the 'ciaddr' field.  If the 'ciaddr'
  1056.    field is non-zero, the BOOTREPLY message SHOULD be sent as an IP
  1057.    unicast to the IP address identified in the 'ciaddr' field.  The UDP
  1058.    destination port MUST be set to BOOTPC (68).  However, the server
  1059.    MUST be aware of the problems identified in Section 3.3.  The server
  1060.    MAY choose to ignore the 'ciaddr' field and act as if the 'ciaddr'
  1061.    field contains 0.0.0.0 (and thus continue with the rest of the
  1062.    delivery algorithm below).
  1063.  
  1064.  
  1065.  
  1066. Wimer                                                          [Page 19]
  1067.  
  1068. RFC 1532        Clarifications and Extensions for BOOTP     October 1993
  1069.  
  1070.  
  1071.    The server SHOULD next check the 'giaddr' field.  If this field is
  1072.    non-zero, the server SHOULD send the BOOTREPLY as an IP unicast to
  1073.    the IP address identified in the 'giaddr' field.  The UDP destination
  1074.    port MUST be set to BOOTPS (67).  This action will deliver the
  1075.    BOOTREPLY message directly to the BOOTP relay agent closest to the
  1076.    client; the relay agent will then perform the final delivery to the
  1077.    client.  If the BOOTP server has prior knowledge that a particular
  1078.    client cannot receive unicast BOOTREPLY messages (e.g., the network
  1079.    manager has explicitly configured the server with such knowledge),
  1080.    the server MAY set the newly-defined BROADCAST flag to indicate that
  1081.    relay agents SHOULD broadcast the BOOTREPLY message to the client.
  1082.    Otherwise, the server MUST preserve the state of the BROADCAST flag
  1083.    so that the relay agent can correctly act upon it.
  1084.  
  1085.    If the 'giaddr' field is set to 0.0.0.0, then the client resides on
  1086.    one of the same networks as the BOOTP server.  The server SHOULD
  1087.    examine the newly-defined BROADCAST flag (see Sections 2.2, 3.1.1 and
  1088.    4.1.2 for more information).  If this flag is set to 1 or the server
  1089.    has prior knowledge that the client is unable to receive unicast
  1090.    BOOTREPLY messages, the reply SHOULD be sent as an IP broadcast using
  1091.    the IP limited broadcast address 255.255.255.255 as the IP
  1092.    destination address and the link-layer broadcast address as the
  1093.    link-layer destination address.  If the BROADCAST flag is cleared
  1094.    (0), the reply SHOULD be sent as an IP unicast to the IP address
  1095.    specified by the field.  If unicasting is not possible, the reply MAY
  1096.    be sent as a broadcast in which case it SHOULD be sent to the link-
  1097.    layer broadcast address using the IP limited broadcast address
  1098.    255.255.255.255 as the IP destination address.  In any case, the UDP
  1099.    destination port MUST be set to BOOTPC (68).
  1100.  
  1101.       DISCUSSION:
  1102.  
  1103.          The addition of the BROADCAST flag to the protocol is a
  1104.          workaround to help promote interoperability with certain client
  1105.          implementations.
  1106.  
  1107.          The following table summarizes server delivery decisions for
  1108.          BOOTREPLY messages based upon information in BOOTREQUEST
  1109.          messages:
  1110.  
  1111.  
  1112.  
  1113.  
  1114.  
  1115.  
  1116.  
  1117.  
  1118.  
  1119.  
  1120.  
  1121.  
  1122. Wimer                                                          [Page 20]
  1123.  
  1124. RFC 1532        Clarifications and Extensions for BOOTP     October 1993
  1125.  
  1126.  
  1127.       BOOTREQUEST fields     BOOTREPLY values for UDP, IP, link-layer
  1128.    +-----------------------+-----------------------------------------+
  1129.    | 'ciaddr'  'giaddr'  B | UDP dest     IP destination   link dest |
  1130.    +-----------------------+-----------------------------------------+
  1131.    | non-zero     X      X | BOOTPC (68)  'ciaddr'         normal    |
  1132.    | 0.0.0.0   non-zero  X | BOOTPS (67)  'giaddr'         normal    |
  1133.    | 0.0.0.0   0.0.0.0   0 | BOOTPC (68)  'yiaddr'         'chaddr'  |
  1134.    | 0.0.0.0   0.0.0.0   1 | BOOTPC (68)  255.255.255.255  broadcast |
  1135.    +-----------------------+-----------------------------------------+
  1136.  
  1137.         B = BROADCAST flag
  1138.  
  1139.         X = Don't care
  1140.  
  1141.    normal = determine from the given IP destination using normal
  1142.             IP routing mechanisms and/or ARP as for any other
  1143.             normal datagram
  1144.  
  1145. Acknowledgements
  1146.  
  1147.    The author would like to thank Gary Malkin for his contribution of
  1148.    the "BOOTP over IEEE 802.5 Token Ring Networks" section, and Steve
  1149.    Deering for his observations on the problems associated with the
  1150.    'giaddr' field.
  1151.  
  1152.    Ralph Droms and the many members of the IETF Dynamic Host
  1153.    Configuration and Router Requirements working groups provided ideas
  1154.    for this memo as well as encouragement to write it.
  1155.  
  1156.    Philip Almquist and David Piscitello offered many helpful suggestions
  1157.    for improving the clarity, accuracy, and organization of this memo.
  1158.    These contributions are graciously acknowledged.
  1159.  
  1160. References
  1161.  
  1162.    [1] Croft, B., and J. Gilmore, "Bootstrap Protocol (BOOTP)", RFC 951,
  1163.        Stanford University and Sun Microsystems, September 1985.
  1164.  
  1165.    [2] Reynolds, J., "BOOTP Vendor Information Extensions", RFC 1497,
  1166.        USC/Information Sciences Institute, August 1993.  This RFC is
  1167.        occasionally reissued with a new number.  Please be sure to
  1168.        consult the latest version.
  1169.  
  1170.    [3] Droms, R., "Dynamic Host Configuration Protocol", RFC 1531,
  1171.        Bucknell University, October 1993.
  1172.  
  1173.    [4] Plummer, D., "An Ethernet Address Resolution Protocol", STD 37,
  1174.        RFC 826, MIT, November 1982.
  1175.  
  1176.  
  1177.  
  1178. Wimer                                                          [Page 21]
  1179.  
  1180. RFC 1532        Clarifications and Extensions for BOOTP     October 1993
  1181.  
  1182.  
  1183.    [5] Deering, S., "ICMP Router Discovery Messages", RFC 1256, Xerox
  1184.        PARC, September 1991.
  1185.  
  1186.    [6] Reynolds, J., and J. Postel, "Assigned Numbers", STD 2, RFC 1340,
  1187.        USC/Information Sciences Institute, July, 1992.  This RFC is
  1188.        periodically reissued with a new number.  Please be sure to
  1189.        consult the latest version.
  1190.  
  1191. Security Considerations
  1192.  
  1193.    There are many factors which make BOOTP in its current form quite
  1194.    insecure.  BOOTP is built directly upon UDP and IP which are as yet
  1195.    inherently insecure themselves.  Furthermore, BOOTP is generally
  1196.    intended to make maintenance of remote and/or diskless hosts easier.
  1197.    While perhaps not impossible, configuring such hosts with passwords or
  1198.    keys may be difficult and inconvenient.  This makes it difficult to
  1199.    provide any form of reasonable authentication between servers and
  1200.    clients.
  1201.  
  1202.    Unauthorized BOOTP servers may easily be set up.  Such servers can
  1203.    then send false and potentially disruptive information to clients such
  1204.    as incorrect or duplicate IP addresses, incorrect routing information
  1205.    (including spoof routers, etc.), incorrect domain nameserver addresses
  1206.    (such as spoof nameservers), and so on.  Clearly, once this "seed"
  1207.    mis-information is planted, an attacker can further compromise the
  1208.    affected systems.
  1209.  
  1210.    Unauthorized BOOTP relay agents may present some of the same problems
  1211.    as unauthorized BOOTP servers.
  1212.  
  1213.    Malicious BOOTP clients could masquerade as legitimate clients and
  1214.    retrieve information intended for those legitimate clients.  Where
  1215.    dynamic allocation of resources is used, a malicious client could
  1216.    claim all resources for itself, thereby denying resources to
  1217.    legitimate clients.
  1218.  
  1219. Author's Address
  1220.  
  1221.    Walt Wimer
  1222.    Network Development
  1223.    Carnegie Mellon University
  1224.    5000 Forbes Avenue
  1225.    Pittsburgh, PA  15213-3890
  1226.  
  1227.    Phone: (412) 268-6252
  1228.    EMail:  Walter.Wimer@CMU.EDU
  1229.  
  1230.  
  1231.  
  1232.  
  1233.  
  1234. Wimer                                                          [Page 22]
  1235.